package cn.edu.zknu.mita.service.impl;

import cn.edu.zknu.mita.mapper.NoticeMapper;
import cn.edu.zknu.mita.model.Notice;
import cn.edu.zknu.mita.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeService implements INoticeService {

    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> listIndexNotice() {
        return noticeMapper.queryNewNotices();
    }
}
